package com.paziy.card_games.cards;

/**
 * Created with IntelliJ IDEA.
 * User: paziy
 * Date: 05.02.13
 * Time: 18:48
 * To change this template use File | Settings | File Templates.
 */
public enum Nominal {

    SIDE("", (byte)0),
    TWO("2", (byte)2),
    THREE("3", (byte)3),
    FOUR("4", (byte)4),
    FIFE("5", (byte)5),
    SIX("6", (byte)6),
    SEVEN("7", (byte)7),
    EIGHT("8", (byte)8),
    NINE("9", (byte)9),
    TEN("10", (byte)10),
    JACK("J", (byte)11),
    QUEEN("Q", (byte)12),
    KING("K", (byte)13),
    ACE("A", (byte)14),
    JOKER("Joker", (byte)15);

    Nominal(String shortName, byte nominal) {
        this.shortName = shortName;
        this.nominal = nominal;
    }

    private String shortName;
    private byte nominal;

    public String getShortName() {
        return shortName;
    }

    public byte byteValue() {
        return nominal;
    }

    public static void main(String[] args) {
        for (Nominal n : Nominal.values())
            System.out.println(n + "=" + n.byteValue());
    }
}
